From: Lukáš Tyrychtr Date: Thu, 9 Oct 2025 14:27:55 +0000 (+0200) Subject: screenshot: Make screenshot tooltips label actors for their widgets X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~80^2^2~8 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=99ae7882dadee6353f05eb4d4f53dddc0798de8e;p=gnome-shell.git screenshot: Make screenshot tooltips label actors for their widgets This ensures that the buttons have a label from their tooltip if we do not have another label actor already (like from the icon label buttons). Because no button using a toolltip in this UI has a label on its own, this is not checked. Part-of: --- diff --git a/js/ui/screenshot.js b/js/ui/screenshot.js index 4513ff287..209207710 100644 --- a/js/ui/screenshot.js +++ b/js/ui/screenshot.js @@ -83,6 +83,9 @@ class Tooltip extends St.Label { else this.close(); }); + + if (!this._widget.label_actor) + this._widget.label_actor = this; } open() {